package com.ry.novel.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ry.novel.model.dto.AuthorInfo;
import com.ry.novel.model.dto.condition.AuthorQuery;
import com.ry.novel.model.entity.Author;

import java.util.List;

/**
 * @author ry
 * @since 2022-04-06 22:45
 **/
public interface AuthorService {
    Page<AuthorInfo> queryAuthor(AuthorQuery authorQuery);

    List<AuthorInfo> queryAll();

    void addAuthor(AuthorInfo authorInfo);

    void deleteAuthor(Long id);

    void updateAuthor(AuthorInfo authorInfo);
}
